Manages the fonts in the component [WIP]. More...
Public Member Functions | |
| Font * | getDefaultFont () const |
| Font * | createOrRetrieve (const nkMemory::StringView &name) |
| Font * | get (const nkMemory::StringView &name) const |
| Font * | getByIndex (unsigned int index) const |
| void | rename (const nkMemory::StringView &oldName, const nkMemory::StringView &newName) |
| void | erase (const nkMemory::StringView &name) |
Manages the fonts in the component [WIP].
This is a WIP.
| Font* nkWinUi::FontManager::getDefaultFont | ( | ) | const |
| Font* nkWinUi::FontManager::createOrRetrieve | ( | const nkMemory::StringView & | name | ) |
Creates if unavailable, or retrieves if available, a font.
| name | The name of the font to retrieve. |
| Font* nkWinUi::FontManager::get | ( | const nkMemory::StringView & | name | ) | const |
Retrieves a font.
| name | The name of the font to retrieve. |
| Font* nkWinUi::FontManager::getByIndex | ( | unsigned int | index | ) | const |
Get a font, by index. Note that one index can map to a different font after memory is changed. Useful to loop over all available fonts in one go.
| index | The index of the font to retrieve. |
| void nkWinUi::FontManager::rename | ( | const nkMemory::StringView & | oldName, |
| const nkMemory::StringView & | newName | ||
| ) |
Renames a font.
| oldName | The name of the font to rename. |
| newName | The name to reassign to the font. |
| void nkWinUi::FontManager::erase | ( | const nkMemory::StringView & | name | ) |
Erases and frees a font.
| name | The name of the font to erase. |